/*
 * @Author: wway 951357249@qq.com
 * @Date: 2023-11-23 22:30:28
 * @LastEditors: wway 951357249@qq.com
 * @LastEditTime: 2023-11-24 17:19:14
 * @FilePath: \vite-project\src\router\index.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */

import Vue from 'vue'
import VueRouter from 'vue-router'
import Main from '../pages/index.vue'
import Home from '../pages/home/index.vue'
import User from '../pages/user/index.vue'
Vue.use(VueRouter)

const router = new VueRouter({
  base: import.meta.env.BASE_URL,
  routes: [
    {
        name:'index',
        path:'/',
        component:Main
    },
    {
        name:'home',
        path:'/home',
        component:Home
    },{
        name:'user',
        path:'/user',
        component:User
    }
  ]
})

export default router